package com.jprocms.module.cms.controller.admin.channel.vo;

import com.jpro.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

import static com.jpro.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 栏目分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ChannelPageReqVO extends PageParam {

    @Schema(description = "栏目模型ID")
    private Integer modelId;

    @Schema(description = "内容模型ID")
    private Integer contentModelId;

    @Schema(description = "站点ID")
    private Integer siteId;

    @Schema(description = "父栏目ID")
    private Integer parentId;

    @Schema(description = "栏目名称")
    private String name;

    @Schema(description = "访问路径")
    private String path;

    @Schema(description = "层级目录（父ID_ID拼接）")
    private String nodePath;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "列表是否显示")
    private Boolean listStatus;

    @Schema(description = "是否加入回收站（0-未加入  1-已加入）")
    private Boolean recycleStatus;

    @Schema(description = "部门ID")
    private Long deptId;

    @Schema(description = "用户ID")
    private Long userId;


    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Date[] createTime;

}
